import request from '@/utils/request'

// 查询本草纲目列表
export function listTdm_ben_cao_gang_mu(query) {
  return request({
    url: '/admin/tdm_ben_cao_gang_mu/list',
    method: 'get',
    params: query
  })
}

// 查询本草纲目详细
export function getTdm_ben_cao_gang_mu(id) {
  return request({
    url: '/admin/tdm_ben_cao_gang_mu/' + id,
    method: 'get'
  })
}

// 新增本草纲目
export function addTdm_ben_cao_gang_mu(data) {
  return request({
    url: '/admin/tdm_ben_cao_gang_mu',
    method: 'post',
    data: data
  })
}

// 修改本草纲目
export function updateTdm_ben_cao_gang_mu(data) {
  return request({
    url: '/admin/tdm_ben_cao_gang_mu',
    method: 'put',
    data: data
  })
}

// 删除本草纲目
export function delTdm_ben_cao_gang_mu(id) {
  return request({
    url: '/admin/tdm_ben_cao_gang_mu/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
